home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / glibc108.zip / glibc108 / posix / Makefile < prev    next >
Makefile  |  1994-03-08  |  3KB  |  86 lines

  1. # Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
  2. # This file is part of the GNU C Library.
  3.  
  4. # The GNU C Library is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU Library General Public License as
  6. # published by the Free Software Foundation; either version 2 of the
  7. # License, or (at your option) any later version.
  8.  
  9. # The GNU C Library is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12. # Library General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU Library General Public
  15. # License along with the GNU C Library; see the file COPYING.LIB.  If
  16. # not, write to the Free Software Foundation, Inc., 675 Mass Ave,
  17. # Cambridge, MA 02139, USA.
  18.  
  19. #
  20. #    Sub-makefile for POSIX portion of the library.
  21. #
  22. subdir    := posix
  23.  
  24. headers    := sys/utsname.h sys/times.h sys/wait.h sys/types.h unistd.h    \
  25.        glob.h wordexp.h fnmatch.h gnu/types.h getopt.h        \
  26.        posix1_lim.h posix2_lim.h posix_opt.h local_lim.h tar.h    \
  27.        utsnamelen.h confname.h waitflags.h waitstatus.h sys/unistd.h
  28.  
  29. distribute := confstr.h
  30.  
  31. routines :=                                      \
  32.     uname                                      \
  33.     __times                                      \
  34.     __wait __waitpid __wait3 __wait4                      \
  35.     alarm sleep pause                              \
  36.     __fork __vfork _exit                                    \
  37.     __execve execve fexecve execv execle execl execvp execlp          \
  38.     __getpid __getppid                              \
  39.     __getuid __geteuid __getgid __getegid __getgrps __setuid __setgid     \
  40.     __getpgrp __setpgrp __setsid setpgid                      \
  41.     getlogin setlogin                              \
  42.     __pathconf __sysconf __fpathcon                          \
  43.     glob fnmatch                                  \
  44.     confstr                                      \
  45.     getopt getopt1
  46. routines    := $(sort $(foreach f,$(routines),$f $(f:__%=%)))
  47. aux        := init-posix environ
  48. tests        := tstgetopt testfnm
  49. others        := getconf
  50. install        := getconf
  51. install-lib    := libposix.a
  52. gpl2lgpl := getopt.c getopt1.c getopt.h    # Frob these guys' copying notices.
  53.  
  54. include ../Rules
  55.  
  56. $(objpfx)libposix.a: $(dep-dummy-lib); $(make-dummy-lib)
  57. lib: $(objpfx)libposix.a
  58.  
  59. # Make the standalone glob/fnmatch package.
  60.  
  61. glob.tar: glob/ChangeLog glob/COPYING.LIB \
  62.       glob/Makefile.in glob/configure glob/configure.in \
  63.       glob/fnmatch.h glob/glob.h glob/fnmatch.c glob/glob.c      
  64.     tar cho$(verbose)f $@ $^
  65. glob/%.c: %.c
  66.     rm -f $@
  67.     ln -s ../$< $@
  68. glob/%.h: %.h
  69.     rm -f $@
  70.     ln -s ../$< $@
  71.  
  72. glob/configure: glob/configure.in
  73.     cd glob; autoconf $(ACFLAGS)
  74.  
  75. glob/ChangeLog: ../ChangeLog
  76.     changelog-extract --regexp 'posix/(glob|fnmatch).*' < $< > $@.new
  77.     chmod a-w $@.new
  78.     mv -f $@.new $@
  79.  
  80. %.Z: %
  81.     compress -c $< > $@-tmp
  82.     mv $@-tmp $@
  83. %.z: %
  84.     gzip -9 -c $< > $@-tmp
  85.     mv $@-tmp $@
  86.